<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('菜房出库单详情列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row" id="printArea">
        <div class="col-sm-12 search-collapse">

            <!--<div class="btn-group-sm" id="toolbar1" role="group">-->

                <!--<h3 class="inline">出库单号</h3>-->

            <!--</div>-->
        </div>

        <!--<div class="btn-group-sm" id="toolbar" role="group">-->
            <!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:ncOuputCf:add">-->
                <!--<i class="fa fa-plus"></i> 添加-->
            <!--</a>-->
            <!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()"-->
               <!--shiro:hasPermission="system:ncOuputCf:edit">-->
                <!--<i class="fa fa-edit"></i> 修改-->
            <!--</a>-->
            <!--<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"-->
               <!--shiro:hasPermission="system:ncOuputCf:remove">-->
                <!--<i class="fa fa-remove"></i> 删除-->
            <!--</a>-->
            <!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:ncOuputCf:export">-->
                <!--<i class="fa fa-download"></i> 导出-->
            <!--</a>-->
            <!--<a class="btn btn-warning" id="print-btn" orderType = "8" shiro:hasPermission="system:ncXunshiLogs:export">-->
                <!--<i class="fa fa-download"></i> 打印-->
            <!--</a>-->
        <!--</div>-->
        <h3 align="center"> <span th:text="出库单" id="ordercode" hidden="hidden"></span> </h3>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
            <h3> <span class="fl-l" id="autograph" hidden="hidden"></span> </h3>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:ncOuputCf:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:ncOuputCf:remove')}]];
    var prefix = ctx + "front/innerInfo";
    var datas = [[${@dict.getType('cforderType')}]];
    var outputType = [[${outputType}]]
    $(function () {
        var options = {
            url: prefix + "/infoTotal?type=cf&outputType="+outputType+"&orderId="+[[${orderId}]],
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "菜房出库",
            showExport: false,
            showSearch: false,
            showRefresh: false,
            showColumns: false,
            showToggle: false,
            columns: [
                /* {
                 checkbox: true
             },*/
                {
                    field: 'outputId',
                    title: '出库id',
                    visible: false
                },

                {
                    field: 'outputType',
                    title: '出库类型'
                    ,
                    formatter: function (value, row, index) {
                        return $.table.selectDictLabel(datas, value);
                    }
                },
                {
                    field: 'realAmout',
                    title: '实际提供数量（kg）',
                    sortable: true
                },
                {
                    field: 'boxAmount',
                    title: '框数',
                    sortable: true
                },
                {
                    field: 'outputTime',
                    title: '出库时间',
                    sortable: true
                },
                {
                    field: 'outputUser',
                    title: '出库经手人',
                    sortable: true
                },

                {
                    field: 'remark',
                    title: '备注',
                }
                // ,
                //
                // {
                //     title: '操作',
                //     align: 'center',
                //     formatter: function (value, row, index) {
                //         var actions = [];
                //         actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.outputId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                //         actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.outputId + '\')"><i class="fa fa-remove"></i>删除</a>');
                //         return actions.join('');
                //     }
                // }
                ]
        };
        $.table.init(options);

        // $('.top-link').click(function () {
        //     var index = $(this).index();
        //     switch (index) {
        //         case 0:
        //             window.location.href = ctx + 'system/ncOrderCf/ncOrderCf-ordered?status=2';
        //             return;
        //         case 1:
        //             window.location.href = ctx + 'system/ncInputCf';
        //             return;
        //         case 2:
        //             window.location.href = ctx + 'system/ncInputCf/ncInputCf-stock';
        //             return;
        //         case 3:
        //             window.location.reload();
        //
        //             return;
        //     }
        // })
    });

    setTitle("蔬菜总产量",true)
</script>
</body>
</html>